{{include file="header2.html"}}
{{include file="menu2.html"}}
		<div class="web_rigth_main" style="background-color:white">
			<!--网站主体内容 S-->
		<div class="content_title_bar">
			<span>&diams;修改密码</span>
		</div>
		<form method="post" enctype="multipart/form-data">
			<input type="hidden" name="id" value="{{$member.id}}">						<!--修改数据ID-->
		<table class="content_table">
			<tr>
				<td>学号：</td>
				<td><input type="text" name="number" autocomplete="off" value="{{if $member.number}}{{$member.number}}{{/if}}" readonly="readonly"></td>
			</tr>
			<tr>
				<td>姓名：</td>
				<td><input type="text" name="username" autocomplete="off" value="{{if $member.username}}{{$member.username}}{{/if}}" readonly="readonly"></td>
			</tr>
			<tr>
				<td>旧密码：</td>
				<td><input type="password" name="password" autocomplete="off" value=""></td>
			</tr>
			<tr>
				<td>新密码：</td>
				<td><input type="password" name="password1" autocomplete="off" value=""></td>
			</tr>
			<tr>
				<td>确认新密码：</td>
				<td><input type="password" name="password2" autocomplete="off" value=""></td>
			</tr>
		

		</table>
		<input type="button" name="submit" value="修改" style="margin:20px 0 0 280px" onclick="modifyipas()">
		</form>





			<!--网站主体内容 E-->
		</div>
	</div>
	<script type="text/javascript">
		//提交
		function modifyipas(){
		    var params = $("form").serialize();
		    $.post('{{"index.php?app=Info&act=modifyipas"|URL}}',params,function(result){
		        if(result.statusCode=='200'){
		        	ui.success(result.message);
		        	setTimeout(function(){
						var url = '{{"index.php?app=Login"|URL}}'; 
						document.location.href = url;//登录后跳转页面
		        	},1000);
		        }else if(result.statusCode=='300'){
		        	ui.error(result.message);
		        }	
		    },'json');
		};
	</script>
{{include file="footer2.html"}}